<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
    <link th:href="@{/local/css/login.css}" rel="stylesheet">
</head>
<body>
<div id="top" th:include="head.html::top"></div>
<div id="middle">
  <div id="left" th:include="left.html::left"></div>
  <div id="right">

    <form action="/admin/gotoAddOrderdetail" method="get">
        <input type="hidden" th:value="${id}" name="oID">
      <input type="submit" value="添加订单详情">
    </form>
    <table>
      <div th:text="${msg}"></div>
      <tr>
        <th>订单详情ID</th>
        <th>商品名</th>
        <th>订单数量</th>
        <th>评价</th>
        <th>时间</th>
        <th>DDD</th>

      </tr>
      <tr th:each="orderdetail:${orderdetailList}">
        <td th:text="${orderdetail.getOdid()}"></td>
       <td th:text="${orderdetail.getGoods().getGdname()}"></td>
        <td th:text="${orderdetail.getOdnum()}"></td>
        <td th:text="${orderdetail.getDevalution()}"></td>
          <td th:text="${#calendars.format(orderdetail.getOdtime(),'yyyy-MM-dd')}"></td>
          <td>
          <a th:href="@{/admin/delOrderdetail/} + ${orderdetail.getOdid()}">删除</a>
          <a th:href="@{/admin/orderdetail/} + ${orderdetail.getOdid()}">编辑</a>
        </td>
      </tr>
    </table>
<!--    <div th:include="page.html::mypage(orderdetail,${orderdetailList})"></div>-->
  </div>
</div>
<div id="bottom" th:include="bottom.html::bottom"></div>

</body>